﻿<%@ Page Language="C#"  AutoEventWireup="true" CodeFile="RegisterSchoolInfo.aspx.cs" Inherits="SchoolManagement_AddSchool" Title="Untitled Page" %>
<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox"  %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../Css/ys.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript" src="../Js/LoginNameCheck.js"></script>
    <script language="javascript" type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>
    <style type="text/css">
      
    </style>
 
</head>
<body>
    <form id="form1" runat="server" enctype="multipart/form-data">
    <asp:HiddenField ID="hidId" runat="server" />
            <div class="title">
               学校管理-->新添学校</div>
            <br class="sp3px" />
            <table style="width:100%;color:#336699;"  class="ta1">
	<tr>
	<td class="ta2 tag"  >
		学校类型
	：</td>
	<td class="ta2">
	 <asp:DropDownList ID="rbtnSchoolType" runat="server"  CssClass="inp2" >
                                <asp:ListItem Value="1">普通院校</asp:ListItem>
                                <asp:ListItem Value="2">985院校</asp:ListItem>
                                <asp:ListItem Value="3">211院校</asp:ListItem>
                            </asp:DropDownList>
	</td></tr>
	<tr>
	<td class="ta2 tag">
		学校名称
	：</td>
	<td class="ta2">
		<asp:TextBox id="txtVS_name" runat="server"   CssClass="inp1" onblur="CreateActiveXobjectAddSchool(this.value);" ></asp:TextBox>
		<label id ="lblname" style ="color:Red; font-size:small"></label>
		<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Text="*"  ControlToValidate="txtVS_name"  ErrorMessage="学校名称不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
	</td></tr>
	<tr>
                    <td class="ta2 tag">
                        学校网址 ：
                    </td>
                    <td class="ta2">
                        <asp:TextBox ID="txtWeb" runat="server" CssClass="inp1" MaxLength="100"></asp:TextBox>
                         
                    </td>
                </tr>
	<tr>
	<td class="ta2 tag"  >
	 英文名
	：</td>
	<td class="ta2">
		<asp:TextBox id="txtVS_englishname" runat="server"    CssClass="inp1"></asp:TextBox>
		<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Text="*"  ControlToValidate="txtVS_englishname" 
                ErrorMessage="英文名不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
	</td></tr>
	<tr>
	<td class="ta2 tag"  >
		电话
	：</td>
	<td class="ta2">
		<asp:TextBox id="txtVS_phone" runat="server"    CssClass="inp1"></asp:TextBox>
		<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Text="*"  ControlToValidate="txtVS_phone" 
                ErrorMessage="学校电话不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
	</td></tr>
	<tr>
	<td class="ta2 tag"  >
		地址
	：</td>
	<td class="ta2">
		<asp:TextBox id="txtVS_address" runat="server"    CssClass="inp1"></asp:TextBox>
		<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" Text="*"  ControlToValidate="txtVS_address" 
                ErrorMessage="学校地址不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
	</td></tr>
	<tr>
	<td class="ta2 tag"  >
		邮编
	：</td>
	<td class="ta2">
		<asp:TextBox id="txtVS_zipcode" runat="server"    CssClass="inp1"></asp:TextBox>
		<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" Text="*"  ControlToValidate="txtVS_zipcode" 
                ErrorMessage="学校邮编不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
                
	</td></tr>
	<tr>
	<td class="ta2 tag"  >
		所在城市
	：</td>
	<td class="ta2">
		<asp:TextBox id="txtVS_city" runat="server"    CssClass="inp1"></asp:TextBox>
		<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" Text="*"  ControlToValidate="txtVS_city" 
                ErrorMessage="学校所在城市不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
	</td></tr>
	<tr>
	<td class="ta2 tag"  >
		所在省份
	：</td>
	<td class="ta2">
		<asp:TextBox id="txtVS_province" runat="server"    CssClass="inp1"></asp:TextBox>
		<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" Text="*"  ControlToValidate="txtVS_province" 
                ErrorMessage="学校所在省份不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
	</td></tr>
	<tr>
	<td class="ta2 tag"  >
		状态
	：</td>
	<td class="ta2">
        <asp:DropDownList ID="ddlSchoolState" runat="server" CssClass="inp2">
                   <asp:ListItem Value="1">正常</asp:ListItem>
                    <asp:ListItem Value="2">停用</asp:ListItem>
        </asp:DropDownList>
	</td></tr>
	<tr>
	<td class="ta2 tag"  >
		Logo
	：</td>
	<td class="ta2">
        <asp:FileUpload ID="schfile" runat="server"  CssClass="inp1"/>
	</td></tr>
	<tr>
	<td class="ta2 tag"  >
		联系人名字
	：</td>
	<td class="ta2">
		<asp:TextBox id="txtVS_relanname" runat="server"   CssClass="inp1"></asp:TextBox>
		<asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" Text="*"  ControlToValidate="txtVS_relanname" 
                ErrorMessage="学校联系人名字不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
	</td></tr>
	<tr>
	<td class="ta2 tag"  >
		联系人电话
	：</td>
	<td class="ta2">
		<asp:TextBox id="txtVS_relanamephone" runat="server"    CssClass="inp1"></asp:TextBox>
		<asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" Text="*"  ControlToValidate="txtVS_relanamephone" 
                ErrorMessage="联系人电话不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
                 <asp:RegularExpressionValidator ID ="adfas" runat ="server" ErrorMessage ="联系格式不正确" ControlToValidate ="txtVS_relanamephone" 
                 ValidationExpression ="^((\(\d{3,4}\)|\d{3,4}-)?\d{8})$|^(\d{11})$" Text ="*" ValidationGroup="register"></asp:RegularExpressionValidator>
	</td></tr>
	<tr>
	<td class="ta2 tag"  >
		联系人邮箱
	：</td>
	<td class="ta2">
		<asp:TextBox id="txtVS_relanameemail" runat="server"   
            Height="22px"  CssClass="inp1"></asp:TextBox>
		 <asp:RegularExpressionValidator ID="RegularExpressionValidator2" 
                 ControlToValidate="txtVS_relanameemail" runat="server" ErrorMessage="电子邮件格式不正确" 
                 ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="register"  Text="*"></asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" Text="*"  ControlToValidate="txtVS_relanameemail" 
                ErrorMessage="电子邮件不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
	</td></tr>
	<tr>
	<td class="ta2 tag">学校简介：</td>
	<td class="ta2">
 
             <FTB:FreeTextBox id="txtDesc" runat="server" Height="206px" Width="297px"  SupportFolder="~/FreeTextBox"   JavaScriptLocation="ExternalFile"   ButtonImagesLocation="ExternalFile"   ToolbarImagesLocation="ExternalFile"/>
	</td>
	</tr>
	            <tr>
	<td class="ta2 tag"  >
		简介图片：</td>
	<td class="ta2">
        <asp:FileUpload ID="fuSchoolImage" runat="server"  CssClass="inp1"/>
	</td>
                </tr>
	<tr>
	<td height="25" colspan="2"><div align="left">
		<asp:Button ID="btnAdd" runat="server" Text="添加" OnClick="btnAdd_Click" ValidationGroup="register" CssClass="button"></asp:Button><input type="button" onclick="this.form.reset(); " value="重置" class="button"  id="btnReset" runat="server"/>
	</div></td></tr>
</table>
<p style="color:Red; text-align:left"><asp:Label ID="lblMess" runat="server"></asp:Label></p>
   <asp:ValidationSummary ID="validSummary" 
            runat="server"  HeaderText="错误信息"  ValidationGroup="register" 
        Height="56px" />
    </form>
</body>
</html>
